package com.myslef.teaching_platfrom.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.myslef.teaching_platfrom.domain.Message;
import com.myslef.teaching_platfrom.domain.users.User;
import com.myslef.teaching_platfrom.mapper.MessageMapper;
import com.myslef.teaching_platfrom.service.MessageService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {
    public List<User> getUserListById(Integer id) {
        return baseMapper.getUserListById(id);
    }
    public List<Message> getMessageListById(Integer id1, Integer id2){
        return baseMapper.getMessageListById(id1, id2);
    }
}
